//package com.wisely.xxboot;
//
//import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
//import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
//import org.springframework.boot.web.servlet.ErrorPage;
//import org.springframework.http.HttpStatus;
//import org.springframework.stereotype.Component;
//
//import java.util.concurrent.TimeUnit;
//
///**
// * <p>Description:</p>
// * <p>Copyright: Copyright (c) 2017</p>
// * <p>Company: 中视数讯</p>
// * <p>Site: www.digi-zones.com</p>
// *
// * @author shengping
// * @version 1.0
// * @date 2017/6/22
// */
//@Component
//public class CustomServletContainer implements EmbeddedServletContainerCustomizer {
//
//    @Override
//    public void customize(ConfigurableEmbeddedServletContainer var1){
//        var1.setPort(8888);
//        var1.addErrorPages(new ErrorPage(HttpStatus.NOT_FOUND,"/404.html"));
//        var1.setSessionTimeout(10, TimeUnit.MINUTES);
//    }
//
//}
